# speed_buff.gd
class_name SpeedBuffResource
extends BuffResource

@export var speed_multiplier: float = 1.5  # 速度加成倍数

func apply_effect(target: Node):
	if target.has_method("set_speed_multiplier"):
		target.set_speed_multiplier(speed_multiplier)

func remove_effect(target: Node):
	if target.has_method("set_speed_multiplier"):
		target.set_speed_multiplier(1.0)  # 恢复原始速度
